package com.yazao;

import jakarta.annotation.PostConstruct;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.TimeZone;

/**
 * @Description: 整个程序主入口
 */
@SpringBootApplication(scanBasePackages = {"${yazao.info.base-package}.server","${yazao.info.base-package}.module"})
public class YaZaoApplication {
    public static void main(String[] args) {
        SpringApplication.run(YaZaoApplication.class, args);
        System.out.println("*********** server successfully*******");
    }

    @PostConstruct
    void started() {
        TimeZone.setDefault(TimeZone.getTimeZone("GMT+8"));
    }
}
